﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrdenTrabajo.aspx.cs" Inherits="YERIL_PI_INT.PaginasWebs.Modulos.Login.OrdenTrabajo" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link href="../../../Content/bootstrap/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700"/>
    <link href="../../../Recursos/HojasEstilo/HELogin.css" rel="stylesheet" />

     <script type="text/javascript">
         function Alerta_Eliminar() {
             var respuesta = confirm("¿Desea eliminar <%=seleccion%>?");
         if (respuesta == true) {
             return true;
         }
         else {
             return false;
         }

     }

    </script>

</head>
<body class="cuerpo">
    <form id="form1" runat="server">
  <div class="container">
    <legend>Orden de Trabajo</legend>

         <div class="alert alert-info">
            <button type="button" class="close" data-dismiss="alert">&times;</button>
             <strong> <% if(MensajeError==null){MensajeError="No hay Errores";} %><%=MensajeError %></strong>
        </div>
        
           <div class="panel panel-default">
            <div class="panel-heading">Encabezado de la Orden</div>
                 <div class="panel-body">
                 <div class="container">
                 <div class="row">
                   <div class="col-md-6" >
                      <div class="control-group">
                        
                            <div class="control-group">
                                <label class="control-label" for="txtCodOrden">Codigo orden</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtCodOrden" runat="server" Width="150px" CssClass="form-control" placeholder="Código Orden" ReadOnly="True"></asp:TextBox>
                                        <asp:TextBox ID="txtCodProyecto" runat="server" Width="400px" CssClass="form-control" placeholder="Código Proyecto"></asp:TextBox>
                                        <asp:TextBox ID="txtCodUsuario" runat="server" Width="400px" CssClass="form-control" placeholder="Código Usuario"></asp:TextBox>
                                    </div>
                          </div><br />
                       </div>
                      <div class="control-group">
                            <label class="control-label" for="txtProyecto">Proyecto</label>
                            <div class="controls">
                                    <asp:TextBox ID="txtProyecto" runat="server" Width="400px" CssClass="form-control" placeholder="Proyecto" ReadOnly="True"></asp:TextBox>
                              </div>
                       </div>
                      <br />
                      <div class="control-group">
                            <label class="control-label" for="txtDescripcion">Descripción de la Orden</label>
                            <div class="controls">
                                    <asp:TextBox ID="txtDescripcion" runat="server" Width="400px" Height="140px" CssClass="form-control" placeholder="Descripción" TextMode="MultiLine"></asp:TextBox>
                            </div>
                      </div>
                      <br />
                      
                    </div>

                   <div class="col-md-6" >
                       <div class="control-group">
                             <label class="control-label" for="txtUsuario">Usuario</label>
                            <div class="controls">
                                    <asp:TextBox ID="txtUsuario" runat="server" Width="400px" CssClass="form-control" placeholder="Usuario" ReadOnly="True"></asp:TextBox>
                            </div>
                        </div> 

                       <br />

                      <div class="control-group">
                    
                        <label class="control-label" for="dlCliente">Compañia</label>
                           <div class="controls">
                             <asp:DropDownList ID="dlCliente" runat="server" CssClass="form-control" Width="200px"></asp:DropDownList>
                           </div>
                      </div>
                      <br />
                      <div class="control-group">
                    
                           <label class="control-label" for="txtNit">Estado de la Orden</label>
                              <div class="controls">
                                  <asp:DropDownList ID="dlEstadoOrden" runat="server" CssClass="form-control" Width="200px"></asp:DropDownList>
                              </div>
                           </div>
                      <br />
                      <div class="control-group">
                    
                           <label class="control-label" for="dlTipoCliente">Fecha de Creación</label>
                               <div class="controls">
                                   <asp:TextBox ID="txtFechaCreacion" runat="server" TextMode="DateTime" CssClass="form-control" Width="200px"></asp:TextBox>
                                </div>
                           </div>
                       
                      <br />
                     
                      <br />
                       <div class="control-group">
                        <div class="btn-group">
                            <asp:ImageButton ID="btnGuardarOrden" runat="server"   CssClass="btn btn-default"  ImageUrl="~/Recursos/Imagenes/glyphicons_446_floppy_save.png" Height="35" Width="45" OnClick="btnGuardarOrden_Click"   />
                            <asp:ImageButton ID="btnSalir" runat="server"   CssClass="btn btn-default"  ImageUrl="~/Recursos/Imagenes/glyphicons_192_circle_remove.png" Height="35" Width="45" OnClick="btnSalir_Click" ToolTip="Salir "  />
                        </div> 

                  </div>
                 </div>
                
           
</div>
            </div>
                 
            </div> 

          </div>


      <div class="panel panel-default">
            <div class="panel-heading">Detalle Material Estructural</div>
                 <div class="panel-body">
                 
                  <div class ="container">
                     <div class="control-group">
                        <div class="btn-group">
                            <asp:ImageButton ID="btnAgregarEstructural" runat="server"   CssClass="btn btn-default"  ImageUrl="~/Recursos/Imagenes/glyphicons_190_circle_plus.png" Height="35" Width="45" OnClick="btnAgregarEstructural_Click"   />
                            <asp:ImageButton ID="btnEliminarEstructural" runat="server"   CssClass="btn btn-default"  ImageUrl="~/Recursos/Imagenes/glyphicons_191_circle_minus.png" Height="35" Width="45" OnClick="btnEliminarEstructural_Click" OnClientClick="return Alerta_Eliminar()"  />
                        </div>
                        
                    
                    </div>
                  </div>
                     <br /><br />
                     <asp:GridView ID="gvDetalleEstructural" runat="server" CssClass="table table-bordered table-hover" OnSelectedIndexChanged="gvDetalleEstructural_SelectedIndexChanged"   >
                        <Columns>
                            <asp:CommandField ButtonType="Image" ShowSelectButton="True" SelectImageUrl="~/Recursos/Imagenes/glyphicons_217_circle_arrow_right.png" />
                        </Columns>
            </asp:GridView>
                           

                  </div>
                 

          </div>
      <div class="panel panel-default">
            <div class="panel-heading">Detalle Material No Estructural</div>
                 <div class="panel-body">
                  <div class ="container">
                     <div class="control-group">
                        <div class="btn-group">
                            <asp:ImageButton ID="btnAgregarNoEstructural" runat="server"   CssClass="btn btn-default"  ImageUrl="~/Recursos/Imagenes/glyphicons_190_circle_plus.png" Height="35" Width="45" OnClick="btnAgregarNoEstructural_Click"   />
                            <asp:ImageButton ID="btnEliminarNoEstructural" runat="server"   CssClass="btn btn-default"  ImageUrl="~/Recursos/Imagenes/glyphicons_191_circle_minus.png" Height="35" Width="45"  />
                        </div>
                        
                    
                    </div>

                      <br /><br />
                     <asp:GridView ID="gvDetalleNoEstructural" runat="server" CssClass="table table-bordered table-hover"    >
                        <Columns>
                            <asp:CommandField ButtonType="Image" ShowSelectButton="True" SelectImageUrl="~/Recursos/Imagenes/glyphicons_217_circle_arrow_right.png" />
                        </Columns>
            </asp:GridView>
                  </div>
                    
                           

                  </div>
                 

          </div>
     
                   <div class="row">
                        <div class="col-md-6" >
                        </div>

                        <div class="col-md-6" >
                         <div class="panel panel-default">
                                <div class="panel-heading">Total Orden</div>
                                    <div class="panel-body">
                            <div class="container">
                            <div class="control-group">
                             <label class="control-label" for="txtTotalEstructural">Total Material Estructural</label>
                            <div class="controls">
                                    <asp:TextBox ID="txtTotalEstructural" runat="server" Width="400px" CssClass="form-control"  ReadOnly="True" ></asp:TextBox>
                            </div>
                        </div> 

                       <br />

                      <div class="control-group">
                    
                        <label class="control-label" for="txtTotalNoEstructural">Total Material No Estructural</label>
                           <div class="controls">
                             <asp:TextBox ID="txtTotalNoEstructural" runat="server" Width="400px" CssClass="form-control" ReadOnly="True" ></asp:TextBox>
                           </div>
                      </div>
                      <br />

                            <div class="control-group">
                             <label class="control-label" for="txtIVI">Total IVI</label>
                            <div class="controls">
                                    <asp:TextBox ID="txtIVI" runat="server" Width="400px" CssClass="form-control" ReadOnly="True" ></asp:TextBox>
                            </div>
                        </div> 
                            <br />
                        <div class="control-group">
                             <label class="control-label" for="txtGranTotal">GranTotal</label>
                            <div class="controls">
                                    <asp:TextBox ID="txtGranTotal" runat="server" Width="400px" CssClass="form-control" ReadOnly="True" ></asp:TextBox>
                            </div>
                        </div> 
                        </div>
                     </div>
                   </div>
                 </div>
           
     </div>
                 </div>
          
    
    </form>
    <script src="../../../Scripts/jquery-1.9.1.js"></script>
     <script src="../../../Scripts/bootstrap.min.js"></script>
</body>
</html>
